package com.spring.cloud.consumer.server;

import com.garden.springcloud.project.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(value = "GARDEN-PROVIDER",url = "127.0.0.1:8001")
@Component
public interface MyUserServer {
    @GetMapping(value = "getUser")
    List<User> getUser();

    @GetMapping(value = "getValue")
    String getValue();
}
